package com.usian.article.controller.v1;

import com.usian.apis.article.ApArticleBehaviorControllerApi;
import com.usian.article.feign.ApBehaviorClient;
import com.usian.article.service.ApArticleBehaviorService;
import com.usian.article.service.ApCollectionService;
import com.usian.model.article.dtos.ArticleInfoDto;
import com.usian.model.article.pojos.ApCollection;
import com.usian.model.behavior.pojos.*;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.user.pojos.ApUser;
import com.usian.utils.threadlocal.AppThreadLocalUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * ClassName: ApArthicleBehaviorController
 * Author:   WGG
 * Date:    2022-12-2022/12/2-9:50
 * Version: 1.0
 * Description:
 */
@RestController
@RequestMapping("/article/api/v1/article")
public class ApArticleBehaviorController implements ApArticleBehaviorControllerApi {

    @Autowired
    private ApArticleBehaviorService apArticleBehaviorService;

    @Override
    @PostMapping("/load_article_behavior")
    public ResponseResult loadArticleBehavior(@RequestBody ArticleInfoDto dto) {
        return apArticleBehaviorService.loadArticleBehavior(dto);
    }
}
